import axios from 'axios';
export default function () {
   
    let dogList = ['https://images.dog.ceo/breeds/pembroke/n02113023_4373.jpg']
    async function addDog() {
        try {
            let result = await axios.get('https://dog.ceo/api/breed/pembroke/images/random')
            console.log(result.data, 'kkkkk');
            dogList.push(result.data.message)
        } catch (err) {
            console.log(err);

        }
    }
    return {
        dogList, addDog
    }
}